<template>
	<!-- 页面内容--启动页 -->
	<view class="content">

	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				timer: null
			}
		},
		onLoad() {

		},
		mounted() {
			// 在组件挂载后设置一个定时器，2秒后跳转到其他页面
			this.timer = setTimeout(() => {
				console.log(uni.getStorageSync("isShow"));
					uni.switchTab({
						url:"/pages/demo2/demo2"
					});
			}, 1000);
		},
		methods: {
		},
		beforeDestroy() {
			if (this.timer) {
				clearTimeout(this.timer);
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100vw;
		height: 100vh;
		background-image: url('../../static/startpage.png');
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}
</style>